$(function(){
	vipspa.start({
        view: '#ui-view',
        errorTemplateId: '#error', // 可选
        router: {
            'home-1': {
                templateUrl: 'views/home-1.html',
                controller: 'js/app/home-1.js'
            },
            'home-2': {
                templateUrl: 'views/home-2.html',
                controller: 'js/app/home-2.js'
            },
            'home-3': {
                templateUrl: 'views/home-3.html',
                controller: 'js/app/home-3.js'
            },
            'test': {
                templateUrl: 'views/test.html',
                controller: 'js/app/test.js'
            },
            'submit': {
                templateUrl: 'views/submit.html',
                controller: 'js/app/submit.js'
            },
            'report': {
                templateUrl: 'views/report.html',
                controller: 'js/app/report.js'
            },
            'detail': {
                templateUrl: 'views/detail.html',
                controller: 'js/app/detail.js'
            },
            'score': {
                templateUrl: 'views/score.html',
                controller: 'js/app/score.js'
            },
            'defaults': 'score' //默认路由
        }
    });

});
